package com.beiding.dao;

import com.beiding.pojo.Room;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface RoomDao extends MongoRepository<Room,String> ,ResourceOperations<Room>{

    boolean existsByHolderIdAndName(String holderId,String name);

    List<Room> nearbyRooms(double elng, double wlng, double nlat, double slat, Pageable pageable);
}
